Author

Tony Duan

1 k-Fold Cross-Validation

Code
k_flod_resample<- vfold_cv(data, v = 10)
k_flod_resample

2 MONTE CARLO CROSS-VALIDATION

for MCCV, this proportion of the data is randomly selected each time. This results in assessment sets that are not mutually exclusive

Code
mc_resample<- mc_cv(data, prop = 9/10, times = 20)
mc_resample

3 The Bootstrap

A bootstrap sample of the training set is a sample that is the same size as the training set but is drawn with replacement

Code
bootstraps_resample<- bootstraps(data, times = 1000)
bootstraps_resample
Back to top